package com.jason.apps.alert;

import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;

public class ErrorAlert extends DialogFragment {
 
    @Override
    public Dialog onCreateDialog(Bundle savedInstanceState) {
 
        /** Defining an event listener for the Yes button click */
        OnClickListener positiveClick = new OnClickListener() {
            public void onClick(DialogInterface dialog, int which) {
                
             }
        };
 

        AlertDialog.Builder b = new AlertDialog.Builder(getActivity());
        b.setMessage("Account cannot be done..");
        b.setPositiveButton("Sorry", positiveClick);
        b.setTitle("Confirmation");
        Dialog d = b.create();

        return d;
    }
}
